package com.itheima.service;

import com.itheima.common.PageResult;
import com.itheima.dto.QuestionsAuditsDto;
import com.itheima.dto.QuestionsDto;
import com.itheima.dto.QuestionsRecordsDto;
import com.itheima.pojo.*;

public interface QuestionsService {
    PageResult findPage(Integer page, Integer pageSize , QuestionsDto questionsDto);

    void deleteById(Integer id);

    void insert(Questions questions);


    QuestionsDto findById(Integer id);

    void updateById(Integer id, QuestionsDto questionsDto);

    void modifyById(Integer id, Integer publishState);

    PageResult findPageChoice(Integer page, Integer pageSize, QuestionsDto questionsDto);

    PageResult findPageRandoms(Integer page, Integer pageSize, String keyword);

    void deleteRandomsById(Integer id);

    void patchById(Integer id, Integer choiceState);

    void updateCheckById(Integer id, Questions questions);

    QuestionsAuditsDto audiOpinions(Integer id, String username);

    QuestionsRecordsDto setRecords(Integer id, String username);
}
